package display
{
	import flash.text.Font;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;

	public class CTextFormat 
	{
		private static var _CTextformat: CTextFormat = null;
		
		public static function getInstance(): CTextFormat
		{
			if( _CTextformat == null )
			{
				_CTextformat = new CTextFormat( new SingletonEnforcer());
			}
			return _CTextformat;
		}
		public function CTextFormat( enforcer: SingletonEnforcer )
		{
			super();
		}
		public function allowEmbedFontList(): void
		{
			var arrFont:Array = Font.enumerateFonts();
			
			var font:Font;
			
			for each( font in arrFont )
			{
				trace( "FontList : " + font.fontName );
			}
		}
		public function get panelTitle(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0x000000;
			tf.size = 13;
			tf.letterSpacing = -0.2;
			
			return tf;
		}
		public function get componentTitle(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0x212121;
			tf.size = 13;
			tf.letterSpacing = -0.2;
			
			return tf;
		}
		public function get title(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0x212121;
			tf.size = 12;
			tf.letterSpacing = -0.2;
			
			return tf;
		}
		public function get comment(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0x5275ac;
			tf.size = 11;
			tf.letterSpacing = -0.2;
			
			return tf;
		}
		public function get list(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0xCCCCCC;
			tf.size = 11;
			tf.letterSpacing = -0.2;

			return tf;
		}
		public function get btnTitle(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0xc6c6c6;
			tf.size = 11;
			tf.letterSpacing = -0.2;
			
			return tf;
		}
		public function get xmlPath(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0x333333;
			tf.size = 11;
			tf.letterSpacing = -0.2;

			return tf;
		}
		public function get area(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0x453c33;
			tf.size = 11;
			tf.letterSpacing = -0.1;
			tf.leading = 3;

			return tf
		}
		public function get alert(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.align = TextFormatAlign.CENTER;
			tf.font = "Malgun Gothic";
			tf.color = 0x000000;
			tf.size = 12;
			tf.letterSpacing = -0.1;
			
			return tf;
		}
		public function get memory(): TextFormat
		{
			var tf: TextFormat = new TextFormat();
			tf.align = TextFormatAlign.CENTER;
			tf.font = "Malgun Gothic";
			tf.color = 0xFFFFFF;
			tf.size = 11;
			tf.letterSpacing = -0.1;
			
			return tf;
		}
	}
}
class SingletonEnforcer {}